<?php
class AdminController extends AppController {

    public function admin_index() {
    	if (strpos($this->action, 'admin_') !== false) {
			if($this->Session->check('auth') == true) {
				$this->layout = 'admin';
			}else {
				$this->layout = 'login';
			}
		}
		
    }
}
